package bibbletex.views;

public class ReferenceView {
	public static boolean notNull(String str){
		boolean result = false;
		if (str != null){
			if(str != "" && !str.equals("null"))
				result = true;
		}
		return result;
	}
	
	public static String star(float rating, float threshold){
		if (rating > threshold)
			return "&#9733;";
		else
			return "&#9734;";
	}
	
	public static boolean colored_star(float rating, float threshold){
		if (rating > threshold)
			return true;
		else
			return false;
	}
}
